<HTML>
<HEAD>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="theme/Master.css" type="text/css">
<TITLE>Oops!!!! Error Occured</TITLE>
</HEAD>
<BODY>
<table width="100%" border="0" cellpadding="0" cellspacing="0"
	bgcolor="#FFFFFF">
	<tr>
		<td height="21" bgcolor="#495e83"></td>
		<td height="21" bgcolor="#495e83"></td>
	</tr>
	<tr>
		<td height="119" align="left" valign="middle" bgcolor="#FFFFFF">
		<img alt="" src="././images/company_logo.JPG" width="304" height="53">
		</td>
		<td align="right" width="287"><img alt=""
			src="images/header_graphic.jpg" width="287" height="119"></td>
	</tr>
	<tr>
		<td height="45" width="100%" valign="middle" bgcolor="#495e83">
		&nbsp; &nbsp; &nbsp; <a href="./Home.htm" class="links" target="">Home</a>
		&nbsp; &nbsp; &nbsp;<a href="Login.jsp" class="links" target="">Login</a>
		</td>

		<td bgcolor="#495e83"></td>
	</tr>
	<tr>
		<td height="1"><img alt="" src="images/spacer.gif" width="1"
			height="1"></td>
		<td height="1"><img alt="" src="images/spacer.gif" width="1"
			height="1"></td>
	</tr>
	<tr background="images/links_bot_fill.gif">
		<td height="30">&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
	<tr>
		<td bgcolor="#FFFFFF" width="20"><img alt=""
			src="images/spacer.gif" width="20" height="10"></td>
		<td bgcolor="#FFFFFF" align="left" valign="top" class="text"
			height="309" width="99%"><br>
		<!-- #BeginEditable "content" -->
		
		<% 
			String errorMsg = (String)request.getAttribute("ErrorMessage");
			String displayMsg = "";
			
			if(errorMsg==null && errorMsg.equalsIgnoreCase(""))
			{
				displayMsg = "Please contact : infoatonlinevoting@gmail.com for more information.";
			}
			else if(errorMsg.equalsIgnoreCase("LoginFailed"))
			{
				displayMsg = "Login Failed!!! The reasons would be any one of the following:<br>"+
				"1) Incorrect Password<br> 2) User is inactive<br><br> Please contact : infoatonlinevoting@gmail.com for more information.";
			}else
			{
				displayMsg = errorMsg;
			}
		%>

		<center><b><font color="red" size="4">You are not authorized to use this system.</font></b><br><br><br>
		<font size="2"><%=displayMsg %></font>
		</center>

		<!-- Content -->		

	</tr>
	<tr>
		<td bgcolor="#495e83" width="20">&nbsp;</td>
		<td height="35" align="center" valign="middle" bgcolor="#495e83"
			class="footer">Copyright &copy; 2011 All Rights Reserved.
		Designed by Pradeepthi S</td>
		<td bgcolor="#495e83" width="20">&nbsp;</td>

	</tr>

</table>
</BODY>
</HTML>
